package com.dunka.demo.service;

import com.dunka.demo.mapper.Data_DictionaryMapper;
import com.dunka.demo.pojo.Data_Dictionary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author Dunka
 * @Description 数据字典Service
 * @Date 10:29   2019/7/25
 * @ClassName Data_DictionaryService
 */
@Service
public class Data_DictionaryService {
    @Autowired
    private Data_DictionaryMapper data_dictionaryMapper;

    public List<Data_Dictionary> getAllData_Dictionary(Map<String,Object> data){
        return data_dictionaryMapper.getAllData_Dictionary(data);
    }

    public Data_Dictionary getData_DicitonaryById(int id){
        return data_dictionaryMapper.getData_DicitonaryById(id);
    }

    public boolean addData_Dictionary(Data_Dictionary data_dictionary){
        return data_dictionaryMapper.addData_Dictionary(data_dictionary);
    }

    public boolean deleteData_Dictionary(int id){
        return data_dictionaryMapper.deleteData_Dictionary(id);
    }

    public boolean updateData_Dictionary(Data_Dictionary data_dictionary){
        return data_dictionaryMapper.updateData_Dictionary(data_dictionary);
    }

    public boolean batchAddData_Dictionary(List<Data_Dictionary> list){
        return data_dictionaryMapper.batchAddData_Dictionary(list);
    }

    public Integer countData_Dictionary(Map<String,Object> data){
        return data_dictionaryMapper.countData_Dictionary(data);
    }
}
